build: pin -std=c11 for instrument-hooks core.c#53
Conversation
Merging this PR will improve performance by 15.71%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | WallTime | BM_FibonacciRecursive_Darwin[35] |
37.5 ms | 28.3 ms | +32.59% |
| ⚡ | WallTime | BM_Vector_Reserve[10000] |
36.1 µs | 31.2 µs | +15.62% |
| ⚡ | WallTime | BM_Vector_PushBack[10000] |
39.3 µs | 34 µs | +15.48% |
| ⚡ | WallTime | BM_Vector_PushBack[1000] |
4.3 µs | 3.7 µs | +14.94% |
| ⚡ | WallTime | BM_Vector_Reserve[1000] |
3.6 µs | 3.2 µs | +13.91% |
| ⚡ | WallTime | BM_FibonacciRecursive_Darwin[35] |
31.6 ms | 28.3 ms | +11.68% |
| ⚡ | WallTime | BM_RLE_Decode[10000] |
24.6 µs | 22.1 µs | +11.51% |
| ⚡ | WallTime | BM_Vector_Reserve[100] |
390.5 ns | 350.7 ns | +11.34% |
Tip
Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.
Comparing cod-2953-use-stdc11-for-instrument-hooks-in-integrations (76985b6) with main (e47ecff)
Greptile SummaryThis PR pins
Confidence Score: 5/5Safe to merge — the changes are narrowly scoped build-system fixes that pin the C standard for a single prebuilt C file. Both build systems now consistently pin C11 across all compiler/platform paths. The CMake approach uses the idiomatic C_STANDARD property (which CMake correctly translates to /std:c11 for MSVC), and the Bazel select now covers all four arms including both Windows paths. The newly added warning-suppression flags are ordered correctly (-Wno-unknown-warning-option before -Wno-unterminated-string-initialization) and are safe on GCC because GCC silently ignores unknown -Wno-* flags. No files require special attention. Important Files Changed
|
The Zig-generated dist/core.c is rejected under C23 (GCC 15's default), so pin C11 in both the Bazel and CMake builds.
1d6f615 to
9a88d80
Compare
297b3c6 to
76985b6
Compare
No description provided.